<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <style>
    body {
      width: 300px;
      padding: 20px;
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      margin: 0;
    }
    
    .header {
      text-align: center;
      margin-bottom: 20px;
    }
    
    .header h1 {
      font-size: 18px;
      margin: 0;
      color: #333;
    }
    
    .instruction {
      background: #f5f5f5;
      padding: 15px;
      border-radius: 8px;
      margin-bottom: 15px;
      font-size: 14px;
      line-height: 1.5;
    }
    
    .steps {
      list-style: none;
      padding: 0;
      margin: 0;
    }
    
    .steps li {
      padding: 8px 0;
      border-bottom: 1px solid #eee;
    }
    
    .steps li:last-child {
      border-bottom: none;
    }
    
    .step-number {
      background: #4285f4;
      color: white;
      border-radius: 50%;
      width: 20px;
      height: 20px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 12px;
      margin-right: 10px;
    }
    
    .convert-btn {
      width: 100%;
      padding: 12px;
      background: #4285f4;
      color: white;
      border: none;
      border-radius: 6px;
      font-size: 14px;
      cursor: pointer;
      margin-top: 15px;
    }
    
    .convert-btn:hover {
      background: #3367d6;
    }
    
    .convert-btn:disabled {
      background: #ccc;
      cursor: not-allowed;
    }
  </style>
</head>
<body>
  <div class="header">
    <h1>HTML to Markdown</h1>
  </div>
  
  <div class="instruction">
    <strong>使用说明：</strong>
    <ol class="steps">
      <li>
        <span class="step-number">1</span>
        在网页上选择要转换的内容
      </li>
      <li>
        <span class="step-number">2</span>
        右键点击选中的内容
      </li>
      <li>
        <span class="step-number">3</span>
        选择"转换为 Markdown"
      </li>
    </ol>
  </div>
  
  <button class="convert-btn" id="convertBtn">
    转换当前选择的内容
  </button>
  
  <script src="popup.js"></script>
</body>
</html>